// Copyright 2013 Square, Inc.
package org.assertj.ohos.api.view.accessibility;

import ohos.accessibility.AccessibilitySystemAbilityClient;
import org.assertj.core.api.AbstractAssert;

import static org.assertj.core.api.Assertions.assertThat;

/** Assertions for {@link AccessibilitySystemAbilityClient} instances. */
public class AccessibilityManagerAssert
    extends AbstractAssert<AccessibilityManagerAssert, AccessibilitySystemAbilityClient> {
  public AccessibilityManagerAssert(AccessibilitySystemAbilityClient actual) {
    super(actual, AccessibilityManagerAssert.class);
  }

  public AccessibilityManagerAssert isEnabled() {
    isNotNull();
    assertThat(actual.isEnabled()) //
        .overridingErrorMessage("Expected to be enabled but was disabled.") //
        .isTrue();
    return this;
  }

  public AccessibilityManagerAssert isDisabled() {
    isNotNull();
    assertThat(actual.isEnabled()) //
        .overridingErrorMessage("Expected to be disabled but was enabled.") //
        .isFalse();
    return this;
  }
/* // TODO: wang, not found in ohos
  public AccessibilityManagerAssert isTouchExplorationEnabled() {
    isNotNull();
    assertThat(actual.isTouchExplorationEnabled()) //
        .overridingErrorMessage("Expected touch exploration to be enabled but was disabled.") //
        .isTrue();
    return this;
  }

  public AccessibilityManagerAssert isTouchExplorationDisabled() {
    isNotNull();
    assertThat(actual.isTouchExplorationEnabled()) //
        .overridingErrorMessage("Expected touch exploration to be disabled but was enabled.") //
        .isFalse();
    return this;
  }*/
}
